package com.liugege.make.factory.abstractfactory.login;

public class WeixinFactory implements LoginFactory {
    @Override
    public Login getLogin(String loginType) {
        System.out.println("抽象工厂模式...");
        Login login = null;
        if ("Weixin".equals(loginType)){
            login = new WeixinLogin();
            login.setLoginName("Weixin");
        }
        return login;
    }
}
